package dao

import (
	"gorm.io/gorm"
	"micro-grpc-server/library/database"
	"micro-grpc-server/services/attachment/internal/conf"
)

type Dao struct {
	conf *conf.Config
	Db   *gorm.DB
}

func NewDao(config *conf.Config) *Dao {
	return &Dao{
		conf: config,
		Db:   database.NewMysql(config.Database),
	}
}
